const app = {
  sidebar: (state) => state.app.sidebar,
  size: (state) => state.app.size,
  device: (state) => state.app.device,
}

const question = {
  type: (state) => state.question.type,

}

const tagsView = {
  visitedViews: (state) => state.tagsView.visitedViews,
  cachedViews: (state) => state.tagsView.cachedViews,
}

const user = {
  token: (state) => state.user.token,
  expired: (state) => state.user.expired,
  userInfo: (state) => state.user.userInfo,
  userName: (state) => state.user.userName,
  avatar: (state) => state.user.avatar,
  roles: (state) => state.user.roles,
  permissions: (state) => state.user.permissions,
}

const permission = {
  permission_routes: (state) => state.permission.routes,
}

export default { ...app, ...tagsView, ...user, ...permission, ...question }
